/*
	Prototipo objetoAjaxInputSincro
*/

function objetoAjaxInputSincro(){
	this.ObjRequest = new XMLHttpRequest();
	this.ObjRequest.overrideMimeType('html/xml');
}

function peticionAsincrona( url){
	var ObjAct = this;
	this.ObjRequest.open( 'GET', url, false);
	this.ObjRequest.send(null);

	var MyXMLDocL = this.ObjRequest.responseXML.getElementsByTagName( "input");
	for( var k = 0; k < MyXMLDocL.length; k++){
		if( MyXMLDocL[k].childNodes.length != 0){
			for( var j = 0; j < MyXMLDocL[k].childNodes.length; j++){
				if( MyXMLDocL[k].childNodes[j].nodeType == 1){
					document.getElementById( MyXMLDocL[k].childNodes[j].tagName).value = MyXMLDocL[k].childNodes[j].childNodes[0].nodeValue;
				}
			}
		}
	}
}

objetoAjaxInputSincro.prototype.iniciar = peticionAsincrona;